﻿<h2><if cond="$id_maint == 0">Ajouter une maintenance<else>Modifier une maintenance</if></h2>
<br/ >

<if cond="$error != 0">
			<div class="attention" id="error_div" style="margin-bottom:15px;">
				<if cond="$error == 1">
					Vérifiez que tous les champs sont correctement défini.
				<elseif cond="$error == 2">
					Aucun champ ne doit être laissé vide.
				</if>
			</div>
			<br />
	</if>
	

<form name="gestion_m_post" method="POST">
	
	<div id="form_maint">
		<label for="titre">Titre :</label><input type="text" id="titre" value="{titre_d}" maxlength="60" /><br /><br />
		<label for="cat">Catégorie :</label><select id="cat" name="cat">
											<option value="0" <if cond="$cat_d == 0">selected="selected"</if>>A définir</option>
											<option value="1" <if cond="$cat_d == 1">selected="selected"</if>>Noms de domaine</option>
											<option value="2" <if cond="$cat_d == 2">selected="selected"</if>>Hébergement multualisé</option>
											<option value="3" <if cond="$cat_d == 3">selected="selected"</if>>Panel</option>
											<option value="4" <if cond="$cat_d == 4">selected="selected"</if>>Datacenter</option>
											</select><br /><br />
											
		<label for="severite">Niveau de Sévérité :</label><select id="severite" name="severite">
														<option value="0" <if cond="$severite_d == 0">selected="selected"</if>>A définir</option>
														<option value="1" <if cond="$severite_d == 1">selected="selected"</if>>Basse</option>
														<option value="2" <if cond="$severite_d == 2">selected="selected"</if>>Moyenne</option>
														<option value="3" <if cond="$severite_d == 3">selected="selected"</if>>Haute</option>
														<option value="4" <if cond="$severite_d == 4">selected="selected"</if>>Critique</option>
														</select><br /><br />
														
		<label for="type">Type :</label><select id="type" name="type">
										<option value="0" <if cond="$type_d == 0">selected="selected"</if>>A définir</option>
										<option value="1" <if cond="$type_d == 1">selected="selected"</if>>Maintenance</option>
										<option value="2" <if cond="$type_d == 2">selected="selected"</if>>Mise à jour</option>
										<option value="3" <if cond="$type_d == 3">selected="selected"</if>>Incident</option>
										<option value="4" <if cond="$type_d == 4">selected="selected"</if>>Installation</option>
										</select><br /><br />
		<label for="priorite">Priorité :</label><select id="priorite" name="priorite">
												<option value="0" <if cond="$priorite_d == 0">selected="selected"</if>>A définir</option>
												<option value="1" <if cond="$priorite_d == 1">selected="selected"</if>>Normal</option>
												<option value="2" <if cond="$priorite_d == 2">selected="selected"</if>>Flash</option>
												<option value="3" <if cond="$priorite_d == 3">selected="selected"</if>>Immédiate</option>
												<option value="4" <if cond="$priorite_d == 4">selected="selected"</if>>Urgente</option>
												</select><br /><br />
												
		<label for="etat">État :</label><select id="etat" name="etat">
										<option value="0" <if cond="$etat_d == 0">selected="selected"</if>>A définir</option>
										<option value="1" <if cond="$etat_d == 1">selected="selected"</if>>Annulé</option>
										<option value="2" <if cond="$etat_d == 2">selected="selected"</if>>En cours</option>
										<option value="3" <if cond="$etat_d == 3">seleted="selected"</if>>En pause</option>
										<option value="4" <if cond="$etat_d == 4">selected="selected"</if>>Terminé</option>
										</select><br /><br />
										
		<label for="fermer">Fermer :</label><input id="fermer" type="radio" name="fermer" value="1" <if cond="$fermer_d == 1">checked="checked"</if> /> Oui
<input id="fermer" type="radio" name="fermer" value="0" <if cond="$fermer_d == 0">checked="checked"</if> /> Non 
<br /><br />
		 <label for="pourcent">Poucentage fini :</label><input id="pourcent" type="text" name="pourcent" value="{pourcent_d}" maxlength="3" readonly /> <a href="#" onclick="edit_p('down'); return false;"><img src="/img/down.png" alt="-" /></a> <a href="#" onclick="edit_p('up'); return false;"><img src="/img/up.png" alt="+" /></a>
		 <br /><br />
		 <input type="hidden" value="{id_maint}" name="id_maint"  />
		 <label for="details">Détails :</label><textarea id="details" name="details">{details_d}</textarea><br /><br />
		<center><input type="button"  onclick="gest_m('add', 'gestion_m_post', {id_maint})" value="<if cond="$id_maint == 0">Créer<else>Modifier</if>" name="send" /></center>
	</div>
		
</form>